<html>
<head>
<style type='text/css'>
body {
   background-color: white;
   margin: 1em 2em 1em 2em;
   font-family: Sans-Serif;
   color: #002;
   line-height: 140%;
   font-size: 12px;
}

h4 {
    font-size: 100%;
    font-style: normal;
    font-weight: bold;
}

h5 {
    font-size: 100%;
    font-style: italic;
    font-weight: normal;
}

pre {
   background-color: #eee;
   padding: 0.5em 0.5em 0.5em 2em;
}

@media print {
   pre {word-wrap:break-word; width:100%;}
} 

ul li,
ol li {
   padding-left: 0.3em;
   /*text-indent: -2em;*/
   margin-bottom: 0.5em;
}

em {
   font-style: normal;
   font-weight: bold;
   text-decoration: underline;
   color: #c40;
}

code {
   font-family: Monospace;
   font-size: 100%;
   color: #c40;
}

a, a * {
   text-decoration: underline;
   color: blue;
   /* border: 0.5px solid #aaa;
   white-space: nowrap;
   padding-right: 0.1em;
   padding-left: 0.1em;
   padding-bottom: -5px; */
}

a code {
   color: blue;
}

img {
   position: relative;
   bottom: -4px;
}

div.headline {
   font-weight: bold;
   font-size: 110%;
}

div.copyright {
   margin-top: 1em;
   border-top: 1px solid black;
   padding-top: 0.5em;
}

div.iris_headline {
   border-bottom: 1px solid black;
   padding-bottom: 0.3em;
}

.LaTeX {
   font-family: Monospace;
   font-size: 100%;
   border: 1px solid #060;
   color: #060;
}

code.LaTeX {
   background-color: white;
   padding: 0.5em 0.5em 0.5em 2em;
}
</style>
</head>

<body>
<div class="iris_headline">IRIS Toolbox Reference Manual</div>




<h2 id="report/modelfile">modelfile</h2>
<div class="headline">Write formatted model file</div>

<h4 id="syntax">Syntax</h4>
<pre><code>P.modelfile(Caption,FileName,...)
P.modelfile(Caption,FileName,M,...)</code></pre>
<h4 id="input-arguments">Input arguments</h4>
<ul>
<li><p><code>P</code> [ report ] - Report object created by the <a href="../report/new.html"><code>report.new</code></a> function.</p></li>
<li><p><code>Caption</code> [ char | cellstr ] - Title and subtitle displayed at the top of the table.</p></li>
<li><p><code>FileName</code> [ char ] - Model file name.</p></li>
<li><p><code>M</code> [ model ] - Model object from which the values of parameters and std devs of shocks will be read; if missing no parameter values or std devs will be printed.</p></li>
</ul>
<h4 id="options">Options</h4>
<ul>
<li><p><code>'latexAlias'</code> [ <code>true</code> | <em><code>false</code></em> ] - Treat alias in labels as LaTeX code and typeset it that way.</p></li>
<li><p><code>'lines='</code> [ numeric | <em><code>Inf</code></em> ] - Print only selected lines of the model file <code>FileName</code>; <code>Inf</code> means all lines will be printed.</p></li>
<li><p><code>'lineNumbers='</code> [ <em><code>true</code></em> | <code>false</code> ] - Display line numbers.</p></li>
<li><p><code>'footnote='</code> [ char | <em>empty</em> ] - Footnote at the model file title; only shows if the title is non-empty.</p></li>
<li><p><code>'paramValues='</code> [ <em><code>true</code></em> | <code>false</code> ] - Display the values of parameters and std devs of shocks next to each occurence of a parameter or a shock; this option works only if a model object <code>M</code> is entered as the 3rd input argument.</p></li>
<li><p><code>'syntax='</code> [ <em><code>true</code></em> | <code>false</code> ] - Highlight model file syntax; this includes model language keywords, descriptions of variables, shocks and parameters, and equation labels.</p></li>
<li><p><code>'typeface='</code> [ char | <em>empty</em> ] - (Not inheritable from parent objects) LaTeX code specifying the typeface for the model file as a whole; it must use the declarative forms (such as <code>\itshape</code>) and not the command forms (such as <code>\textit{...}</code>).</p></li>
</ul>
<h4 id="description">Description</h4>
<p>If you enter a model object with multiple parameterisations, only the first parameterisation will get reported.</p>
<p>At the moment, the syntax highlighting in model file reports does not handle correctly comment blocks, i.e. <code>%{ ... %}</code>.</p>
<h4 id="example">Example</h4>

</body>
<div class="copyright">IRIS Toolbox. Copyright &copy; 2007&#8212;2013 Jaromir Benes.</div>
</html>
